import axios from 'axios';
axios.defaults.baseURL = "https://game.gtimg.cn";
axios.defaults.timeout = 6000;

let sendHttp = (url,method,data=null)=>{
    return axios({
        url:url,
        method:method,
        params:method==='get'?data:null,
        data:method==='post'?data:null
    })
} 

export default sendHttp;